import Vue from 'vue'
import App from './App.vue'
import router from './router'
import logger from 'aliyun-livinglink-logger'
import naAppender from 'aliyun-livinglink-logger-appender'
// import VConsole from 'vconsole'
// new VConsole()

import './assets/common/vant'
import './assets/font/iconfont.css'

import less from 'less'
import './assets/common/base.less'
Vue.use(less)

// 初始化bonelog
logger.conf = {
  // @ts-ignore
  level:
    process.env && process.env.NODE_ENV === 'development'
      ? logger.LEVEL.DEBUG
      : logger.LEVEL.INFO, // DEBUG,ERROR,INFO logger.APPENDER.CONSOLE
  // @ts-ignore
  appender:
    process.env && process.env.NODE_ENV === 'development' ? console : naAppender
}

Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
